<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#d1{
				width: 50px;
				height: 100px;
				background-color: red;
				position: absolute;
				/* 设置显示层级，值越大显示越靠前
				 只对非静态定位的元素有效*/
				z-index: 1;
			}
			#d2{
				width: 100px;
				height: 50px;
				background-color: blue;
				position: absolute;
				z-index: 2;
			}
		</style>
	</head>
	<body>
		<div id="d1"></div>
		<div id="d2"></div>
	</body>
</html>
